﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using System.Collections.Generic;
using System;

namespace EkStudio.com.bean.xml.BillMapping
{
    public class BillDataMapAdvanced : BillObjectInterface
    {
        private string modCaption = "";//映射对象caption
        private string modKey = "";//映射对象key
        private string modLanguageTexts = "";//映射对象多语言
        private string modTableName = "";//数据库表名
        private bool logEnable = false;//保存库存日志

        private List<BillDataMapAdvancedElement> field = null;//字段集

        [Xml]
        public string ModCaption
        {
            get { return modCaption; }
            set { modCaption = value; }
        }
        [Xml]
        public string ModKey
        {
            get { return modKey; }
            set { modKey = value; }
        }
        [Xml]
        public string ModLanguageTexts
        {
            get { return modLanguageTexts; }
            set { modLanguageTexts = value; }
        }
        [Xml]
        public string ModTableName
        {
            get { return modTableName; }
            set { modTableName = value; }
        }
        [Xml]
        public bool LogEnable
        {
            get { return logEnable; }
            set { logEnable = value; }
        }

        [XmlElement]
        public List<BillDataMapAdvancedElement> Field
        {
            get { return field; }
            set { field = value; }
        }
        [XmlTransient]
        public object ParentBean
        {
            get { return null; }
            set { }
        }

        public object Clone()
        {
            throw new NotImplementedException();
        }
    }
}
